// ==Badget==
// @name          Gmail Mail Count
// @description	  Returns the number of unread mails
// @include       http://mail.google.com/*
// @include       https://mail.google.com/*
// ==/Badget==

var badgeStyle = {
  fontSize : 10,
  badgeX : 23,
  badgeY : 6,
  badgeRadius : 5.5,
  badgeColor : "rgb(0,102,0)",
  textColor : "rgb(256,256,256)"
};

function doAction()  {
	r = document.title.match(/\((\d+)\)/);      
	if (r!=null) {
		return r[1];
	}else{
		return null;
	}
}
